home *** CD-ROM | disk | FTP | other *** search
- head 1.3;
- access;
- symbols
- VER_0_3:1.3
- VER_0_2:1.2;
- locks; strict;
- comment @ * @;
-
-
- 1.3
- date 95.03.24.11.43.35; author coulter; state Exp;
- branches;
- next 1.2;
-
- 1.2
- date 95.03.01.07.10.23; author coulter; state Exp;
- branches;
- next 1.1;
-
- 1.1
- date 95.02.18.08.36.38; author coulter; state Exp;
- branches;
- next ;
-
-
- desc
- @stop isofs logging
- @
-
-
- 1.3
- log
- @Checkin version for 0.3 distribution.
- @
- text
- @
- /* logiso_stop.c
- Usage: logiso_stop cd-mount-point-or-file
- Stop the isofs log.
- */
- /* (C) Copyright 1995 by Michael Coulter. All rights reserved. */
-
- #include <fcntl.h>
- #include <linux/iso_fs.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <unistd.h>
-
- #define FALSE 0
- #define TRUE 1
-
- extern void print_usage();
-
- main(int argc, char** argv)
- {
- struct iso_log_entry* entry_p;
- struct iso_log_entry* entry_limit_p;
- int file_id;
- FILE* out_fp;
- struct iso_log_info iso_log_info;
- int result;
- int verbose;
-
- /* file_id = open("/mnt/system_cd/FileList", O_RDONLY); */
- file_id = open(argv[1], O_RDONLY);
- if (file_id == -1) {
- fprintf(stderr, "Unable to open file.\n");
- exit(1);
- }
-
- result = ioctl(file_id, ISO_IOC_STOPLOG);
- if (result != 0) {
- fprintf(stderr,
- "Expected result 0, got %d.\n",
- result);
- exit(1);
- }
- fclose(out_fp);
- return 0;
- } /* end main */
-
- @
-
-
- 1.2
- log
- @Checkpoint files. Can now compress cd_files.
- @
- text
- @d6 1
- @
-
-
- 1.1
- log
- @Checkpoint version before fixing /usr/bin install
- @
- text
- @d3 1
- a3 1
- Usage: logiso_stop
- a8 1
- #include "/usr/include/linux/iso_fs.h"
- d30 1
- a30 1
- file_id = open("/system_cd", O_RDONLY);
- @
-